-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[java-generator] Overridable package name #4694
Conversation
@andreaTP : Do you think we should add documentation for this new flag in doc/java-generation-from-CRD.md |
@rohanKanojia good call! |
CHANGELOG.md
Outdated
### 6.4.0 | ||
|
||
#### New features | ||
* Fix #4694: [java-generator] Option to override the package name of the generated code. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be moved to the SNAPSHOT section, I guess that since we released 6.3.1 while you were working on this you didn't notice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the belated review.
Besides the next boring section, I think it would be good to update the docs too (however, you created another more generic issue for that).
While I like the solution, I'm not completely convinced about its intuitiveness.
As I see it, we're offering the possibility to users to map the final computed, conventional packages to a different name. However, this is under the assumption that the user is aware of what the final package name will be according to our internal convention (and this is were I'm probably making wrong assumptions).
So basically we're telling the user to configure the final step in the following flow:
gorup -> convention.package -> custom.package
I insist that maybe users would be more comfortable with what you proposed here and this is just to raise a point and a discussion. Wouldn't it be more intuitive for users to map the group/name to a package name:
<broker.amq.io>com.example.crd.amq</broker.amq.io>
Although now that I'm seeing this, my proposal has the problem of how to include the version (maybe nested, but this would be ugly).
Anyway, I'd just like to know your thoughts on this before probably merging it as it is. Otherwise, it's pretty cool ;) 🙌
@manusa you are right that the current implementation is not great in terms of usability, but I cannot find a better implementation of it 🙁 The reasoning to be applied here is the following:
Matching on the plain Possible improvements over this might be to log the package names and provide the user with some information in the terminal ... but, again this is not going to be great ... |
SonarCloud Quality Gate failed. |
Description
Fix #4621
Type of change
test, version modification, documentation, etc.)
Checklist